'use strict';
module.exports = {
	/**
	 * XXXnameXXX
	 * @url agent/callback/pub/mock/zx 前端调用的url参数地址
	 * data 请求参数
	 * @param {String} params1  参数1
	 */
	main: async (event) => {
		let { data = {}, userInfo, util, filterResponse, originalParam } = event;
		let { customUtil, uniID, config, pubFun, vk, db, _ } = util;
		let { uid } = data;
		let res = { code: 0, msg: "" };
		// 业务逻辑开始-----------------------------------------------------------

		let k = {
			code: 0,
			msg: '请求成功',
			data: {
				"dimensions": [
					"product",
					"data1"
				],
				"source": [{
						"product": "Mon",
						"data1": 188
					},
					{
						"product": "Tue",
						"data1": 200
					},
					{
						"product": "Wed",
						"data1": 150
					},
					{
						"product": "Thu",
						"data1": 80
					},
					{
						"product": "Fri",
						"data1": 70
					},
					{
						"product": "Sat",
						"data1": 110
					},
					{
						"product": "Sun",
						"data1": 130
					}
				]
			}
		}

		return k;


		// 业务逻辑结束-----------------------------------------------------------
		return res;
	}
}
